package com.demo.test.strategy;

public class Client {
    public static void main(String[] agr){
        ContextCompany contextCompany = new ContextCompany();

        contextCompany.judgment();

        contextCompany.setStrategy(new LeftStrategy());

        contextCompany.judgment();

        contextCompany.setStrategy(new DoubleStrategy());

        contextCompany.judgment();
    }
}
